package cn.edu.scau.cmi.wujiaxian.exercise11;

import java.awt.Color;
import java.awt.Container;

import javax.swing.JFrame;


public class Example11_1 {
	
	public static void main(String[] args) {
		JFrame window1 = new JFrame("first");
		JFrame window2 = new JFrame("第二个窗口");
		Container container = window1.getContentPane();
		container.setBackground(Color.YELLOW);
		window1.setBounds(60, 100, 188, 108);
		window2.setBounds(260, 100, 188, 108);
		window1.setVisible(true);
		window1.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		window2.setVisible(true);
		window2.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	}
	
}
